class CreateRequestAndComplaintRegistrationRequests < ActiveRecord::Migration
  def self.up
    create_table :request_and_complaint_registration_requests do |t|
      t.string :name, :null=>false
      t.string :dni, :null=>false
      t.string :mail
      t.string :phone
      t.text :description
      t.string :address
      t.integer :deleted, :default=>0
      t.integer :department
      t.integer :province
      t.integer :district
      t.integer :state, :default=>0

      t.timestamps
    end
  end

  def self.down
    drop_table :request_and_complaint_registration_requests
  end
end
